package collegemenu;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.JTextField;
import javax.swing.BoxLayout;
import java.awt.GridLayout;
import javax.swing.SwingConstants;
// 자격증
public class license extends JPanel {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;

	/**
	 * Create the panel.
	 */
	public license() {
		setLabel();
		setButton();
		setTextfield();
	}


private void setLabel(){
	setLayout(new BorderLayout(0, 0));
	
	JPanel panel_1 = new JPanel();
	add(panel_1, BorderLayout.NORTH);
	
	JLabel lblNewLabel_5 = new JLabel("자격증");
	panel_1.add(lblNewLabel_5);
	JPanel panel = new JPanel();
	panel.setPreferredSize(new Dimension(100, 10));
	add(panel, BorderLayout.WEST);
	panel.setLayout(new GridLayout(0, 1, 0, 0));
	
	JLabel lblNewLabel = new JLabel("자격증명");
	lblNewLabel.setHorizontalTextPosition(SwingConstants.CENTER);
	lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
	lblNewLabel.setPreferredSize(new Dimension(57, 20));
	panel.add(lblNewLabel);
	
	JLabel lblNewLabel_2 = new JLabel("급수");
	lblNewLabel_2.setHorizontalTextPosition(SwingConstants.CENTER);
	lblNewLabel_2.setHorizontalAlignment(SwingConstants.CENTER);
	panel.add(lblNewLabel_2);
	
	JLabel lblNewLabel_3 = new JLabel("취득일자");
	lblNewLabel_3.setHorizontalTextPosition(SwingConstants.CENTER);
	lblNewLabel_3.setHorizontalAlignment(SwingConstants.CENTER);
	panel.add(lblNewLabel_3);
	
	JLabel lblNewLabel_4 = new JLabel("취득번호");
	lblNewLabel_4.setHorizontalTextPosition(SwingConstants.CENTER);
	lblNewLabel_4.setHorizontalAlignment(SwingConstants.CENTER);
	panel.add(lblNewLabel_4);
	
	JLabel lblNewLabel_1 = new JLabel("취득처");
	lblNewLabel_1.setHorizontalTextPosition(SwingConstants.CENTER);
	lblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);
	panel.add(lblNewLabel_1);
	
}

private void setButton(){
	JPanel panel_1 = new JPanel();
	add(panel_1, BorderLayout.SOUTH);
	
	JButton btnNewButton = new JButton("등록");
	panel_1.add(btnNewButton);
	
	JButton btnNewButton_1 = new JButton("확인");
	panel_1.add(btnNewButton_1);
}



private void setTextfield(){
	JPanel panel_2 = new JPanel();
	add(panel_2, BorderLayout.CENTER);
	panel_2.setLayout(new BorderLayout(0, 0));
	
	JPanel panel = new JPanel();
	panel_2.add(panel, BorderLayout.EAST);
	
	JPanel panel_1 = new JPanel();
	panel_2.add(panel_1, BorderLayout.CENTER);
	panel_1.setLayout(new GridLayout(5, 0, 0, 0));
	
	textField_1 = new JTextField();
	panel_1.add(textField_1);
	textField_1.setColumns(10);
	
	textField_4 = new JTextField();
	panel_1.add(textField_4);
	textField_4.setColumns(10);
	
	textField_3 = new JTextField();
	panel_1.add(textField_3);
	textField_3.setColumns(10);
	
	textField_2 = new JTextField();
	panel_1.add(textField_2);
	textField_2.setColumns(10);
	
	textField = new JTextField();
	panel_1.add(textField);
	textField.setColumns(10);

}
}
